package mn.idax.exchange.otc.mapper;

import mn.idax.exchange.otc.entity.JPushLog;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface JPushLogMapper {

    List<JPushLog> getSystemMessage(@Param("email")String email);

    Integer updateJpushLog(@Param("id")Integer id, @Param("utcNow")Date utcNow);

    /**
     * 获取未读的极光推送
     * @param email
     * @return
     */
    List<Integer> getUnReadSystemMessage(@Param("email")String email);

    /**
     * 更新JpushLog为已读
     * @param ids
     * @param utcNow
     * @return
     */
    Integer updateJpushLogsToRead(@Param("ids")List<Integer> ids, @Param("utcNow")Date utcNow);

}